extend ../layout
block append css
    link(rel="stylesheet" href="/duimen/css/swiper.min.css")
    link(rel="stylesheet" href="/duimen/css/detail-sign.css")
    link(rel="stylesheet" href="/duimen/css/detail.css")
block content
    style body{background-color:#f7f7f7;padding-top:.88rem;}
    header.header
        a.backBtn(href="javascript:window.history.go(-1);")
        span 详情
    .tie-mod
    include ../includes/_tie-comments
    script#tpl_tieMod(type="text/html").
        <img src="{{custImage}}" class="avatar" onerror=" this.src ='/duimen/css/images/empty.png';">
        <h3>{{custName}}</h3>
        <p>{{postTitle}}</p>
        {{if images[0]}}
            <div class="tie-tu">
                <div class="swiper-container">
                    <div class="swiper-wrapper">
                        {{each images as item i}}
                            <img class="swiper-slide" src="{{item}}">
                        {{/each}}
                    </div>
                </div>
            </div>
            <span class="page">1/{{images.length}}</span>
        {{/if}}
block append js
    script(src='/duimen/js/swiper.js')
    script(src='/duimen/js/alertBox.js')
    script(src='/duimen/js/_tie-comments.js')
    script(src='/duimen/js/Detail.js')

